package com.sky.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ApiModel(description = "更新角色DTO")
public class AdminRoleUpdateDTO {

    @NotNull(message = "角色ID不能为空")
    @ApiModelProperty(value = "角色ID", required = true)
    private Integer id;

    @NotBlank(message = "角色名称不能为空")
    @ApiModelProperty(value = "角色名称", required = true)
    private String name;

    @NotBlank(message = "角色描述不能为空")
    @ApiModelProperty(value = "角色描述", required = true)
    private String description;

    @NotEmpty(message = "权限列表不能为空")
    @ApiModelProperty(value = "权限ID列表", required = true)
    private List<Integer> permissions;
} 